/*******************************************************************************
 *                                                                             *
 * Square3D Engine                                                             *
 * (C) 2010 Aviral Dasgupta <aviraldg@gmail.com>                               *
 *                                                                             *
 *******************************************************************************
 * Texture.cpp                                                                 *
 ******************************************************************************/

Texture::~Texture()
{
	ResourceManager::getInstance()->done(this->resId);
}

bool Texture::load(std::string id)
{
	
}

bool Texture::loadRAW(std::string id, TextureRAWType type)
{
	ResourceManager rm=ResourceManager::getInstance();
	this->format = type;
	this->resId = rm->getTex(id);
	size_t size = rm->getSize(resId);
	this->data = tm->getPtr(resId);
}

